package com.electric.qrapp.utils.system

import com.electric.qrapp.ui.base.act.QRApp

/**
 *@author:Fanatic
 *@date:2021/8/12 21:51
 *@des:
 */
class Constants {
    companion object RequestCode {
        const val REQ_SCAN = 1   //扫码
        const val REQ_LOCATION = 2   //定位
        const val REQ_CAMERA = 3 //相机
        const val REQ_ALBUM = 4 //相册

    }


    object Config {
        const val FILEPROVIDER = "com.electric.qrapp.fileprovider"
    }

    object File {
        const val SP_MAIN = "QRApp_SP_Main"   //sharePreference 文件名称

        var FILE_CACHE = "${QRApp.app.filesDir?.absolutePath}/docs"   //文件缓存目录 查看文档
        var TEMP_READ = "${QRApp.app.filesDir?.absolutePath}/TbsReaderTemp"; //x5内核缓存

       const val MAX_FILE_CACHE = 3 //缓存文件最大数量
    }

    object Par{
        const val BEAN = "bean"
    }

}